package com.shisfish.english.service;

import java.util.List;

import com.shisfish.core.dto.PageData;
import com.shisfish.core.dto.ResultDto;
import com.shisfish.core.service.IBaseService;
import com.shisfish.english.model.SingleWord;

public interface ISingleWordService extends IBaseService<SingleWord> {

	ResultDto<Integer> insert(String name, String meaning);

	ResultDto<List<SingleWord>> searchByNameL(String name);

	ResultDto<Integer> changeMeaning(Long id, String meaning);

	ResultDto<Integer> deleteById(Long id);

	ResultDto<List<SingleWord>> searchByParams(String name);

	/**
	 * @author huangs
	 *
	 * @Description 分页条件获取信息
	 * @param pageIndex
	 * @param pageSize
	 * @param name
	 * @return
	 */
	ResultDto<List<SingleWord>> pageByParams(Integer pageIndex, Integer pageSize, String name);

	ResultDto<PageData> getPageData(Integer pageIndex, Integer pageSize, String name);

}
